package util;

public class Utils {
	public static String fomatDomain(String str) {
		if (str != null) {
			str = str.toLowerCase().replaceAll("http://", "")
					.replaceAll("[\\/]+$", "");
		}
		return str;
	}

	public static String cleanContent(String str) {
		str = str.replaceAll(
				"(class|id)[ ]*[=]{1}[ ]*[\\'\\\"]{1}[^\\'\\\"]+[\\'\\\"]{1}",
				"");
		str = str.replaceAll("<script[^<]+</script[ ]*>", "");
		return str;
	}
}